package com.woniu.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年05月23日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_order")
public class TOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /*
     * 订单表
     */
    @ApiModelProperty(name = "id",value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /*
     * 用户选择废品大类(只能是一级类别)
     */
    @ApiModelProperty(name = "typeId",value = "用户选择废品大类(只能是一级类别)")
    @TableField("type_id")
    private String typeId;

    /*
     * 用户预估总重量
     */
    @ApiModelProperty(name = "expectWeight",value = "用户预估总重量")
    @TableField("expect_weight")
    private BigDecimal expectWeight;

    /*
     * 实物图(非必须)
     */
    @ApiModelProperty(name = "img",value = "实物图(非必须)")
    @TableField("img")
    private String img;

    /*
     * 用户id
     */
    @ApiModelProperty(name = "userId",value = "用户id")
    @TableField("user_id")
    private Long userId;

    /*
     * 下单时间
     */
    @ApiModelProperty(name = "createTime",value = "下单时间")
    @TableField("create_time")
    private String createTime;

    /*
     * 员工id
     */
    @ApiModelProperty(name = "employId",value = "员工id")
    @TableField("employ_id")
    private Long employId;

    /*
     * 订单状态
     */
    @ApiModelProperty(name = "state",value = "订单状态")
    @TableField("state")
    private Long state;

    /*
     * 实际总价
     */
    @ApiModelProperty(name = "totalPrice",value = "实际总价")
    @TableField("total_price")
    private BigDecimal totalPrice;

    /*
     * 收货人地址
     */
    @ApiModelProperty(name = "address",value = "收货人地址")
    @TableField("address")
    private String address;

    /*
     * 收货人电话
     */
    @ApiModelProperty(name = "phone",value = "收货人电话")
    @TableField("phone")
    private String phone;

    /*
     * 收货人姓名
     */
    @ApiModelProperty(name = "name",value = "收货人姓名")
    @TableField("name")
    private String name;
    /*
     * 预约时间
     */
    @ApiModelProperty(name = "bookingTime",value = "预约时间")
    @TableField("booking_time")
    private String bookingTime;

    /*
     * 地址id
     */
    @ApiModelProperty(name = "addressId",value = "地址id")
    @TableField("address_id")
    private Long addressId;
    /*
    站点id
     */
    @ApiModelProperty(name = "StationId",value = "站点id")
    @TableField("station_id")
    private Long stationId;
    /*
    拒绝理由
     */
    @ApiModelProperty(name = "refuseReason",value = "拒绝原因")
    @TableField("refuse_reason")
    private String refuseReason;
}
